﻿// ATLControl.cpp: CATLControl 的实现
#include "pch.h"
#include "ATLControl.h"
#include "D:\init\git_oschina\apps\system_info-master\Dll1\output.h"

// CATLControl


STDMETHODIMP CATLControl::GetCpuType(BSTR *cpuType)
{
	// TODO: 在此处添加实现代码
	HardwareInfo info;
	GetHardwareInfo(&info);
	BSTR  bs = SysAllocString( info.cpu );	
	memcpy(cpuType, bs, sizeof(bs));
	return S_OK;
}
